import docker


class DockerManager(object):
    """
    docker容器管理
    pip install docker
    """

    def __init__(self):
        pass


if __name__ == '__main__':
    client = docker.from_env()
    print(client)
    result = client.version()
    print(result)

    container_list = client.images.list()
    print(container_list)

    # client.containers.run('hello world')
